import 'package:flutter/material.dart';

void main() {
  
 runApp(MaterialApp(
    home:  MyHome('123','我是内容哦') ,
  ));
}


// StatelessWidget 无状态组件
class MyHome extends StatelessWidget{

  MyHome(this.title,this.content);

  String title='moren';

  String content='content';

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
   return Scaffold(
      // 1.1 导航
      appBar: AppBar(
        backgroundColor: Colors.orange,
        title: Text(title),
      ),
      // 1.2 主体部分
      // 帮我调整 Text 的代码 实现 超出部分 ...
      body: Center(
        child: Container(
          width: 300,
          height: 400,
          color: Colors.lightBlue,
          padding: EdgeInsets.only(top:20,left: 30),
          // child: Image.network('https://yanxuan-item.nosdn.127.net/e529b6ab111ade9da9314867f98d360f.png'),
          child:Column(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Image.network('https://yanxuan-item.nosdn.127.net/e529b6ab111ade9da9314867f98d360f.png',
              width: 250,),
              Text('纵享丝滑，品优购'),
              Text('¥60.00'),
            ],
          ),
        ),
      ))
      ;
  }
  
}


